﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ShowComment.aspx.cs" Inherits="PowerCreator.LMS.Web.Sys.Comment.ShowComment" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <link href="../../css/default.css" type="text/css" rel="stylesheet" />
    <style type="text/css">
.{
    font-size:12px
 }
</style>
</head>
<body>
    <form id="form1" runat="server">
        <table width="100%" border="0" cellpadding="0" cellspacing="0" class="colorbg">
            <tr>
                <th>
                    <img src="../../images/dh.gif" alt="导航图片" width="18" height="18" /></th>
                <td>
                    您的位置:后台管理 &gt; 点评管理 &gt; 管理点评 &gt; 查看点评</td>
            </tr>
        </table>
        <br />
        <table border="0" cellpadding="0" cellspacing="0" class="talbe-rearch">
            <tr>
                <th>
                    评论搜索
                </th>
                <td>
                    <asp:TextBox ID="txtCommentContent" runat="server"></asp:TextBox>
                    <asp:Button ID="btnSearch" runat="server" CssClass="mybuttons" Text="搜 索" OnClick="btnSearch_Click" /></td>
            </tr>
        </table>
        <br />
        <table width="40%" border="0" cellpadding="0" cellspacing="0">
            <tr>
                <td>
                    <asp:Repeater ID="rptCommentLevel" runat="server">
                        <HeaderTemplate>
                            <table width="100%" class="List-GridView">
                        </HeaderTemplate>
                        <ItemTemplate>
                            <tr>
                                <th>
                                <%#DataBinder.Eval(Container.DataItem, "KeyName")%>
                                </th>
                                <td><%#DataBinder.Eval(Container.DataItem, "Count")%>
                                </td>
                            </tr>
                        </ItemTemplate>
                        <FooterTemplate>
                            </table>
                        </FooterTemplate>
                    </asp:Repeater>
                </td>
            </tr>
        </table>
        <br />
        <asp:Repeater ID="rptCommentList" runat="server" OnItemCommand="rptCommentList_ItemCommand">
            <HeaderTemplate>
                <table width="98%" class="List-GridView" style="border-width: 0px; border-collapse: collapse;">
                    <tr>
                        <th>
                            评论标题</th>
                        <th>
                            课件时间点</th>
                        <th>
                            评论用户</th>
                        <th>
                            评论者IP</th>
                        <th>
                            评论时间</th>
                        <th>
                            推荐次数</th>
                        <th>
                            操作</th>
                    </tr>
            </HeaderTemplate>
            <ItemTemplate>
                <tr>
                    <td align="left">
                        <%#DataBinder.Eval(Container.DataItem, "Title")%>
                    </td>
                    <td align="left">
                        <%#DataBinder.Eval(Container.DataItem, "PlayTime")%>
                    </td>
                    <td align="left">
                        <%#DataBinder.Eval(Container.DataItem, "CreatedUserName")%>
                    </td>
                    <td align="left">
                        <%#DataBinder.Eval(Container.DataItem, "CreatedIP")%>
                    </td>
                    <td>
                        <%#DataBinder.Eval(Container.DataItem, "CreatedTime")%>
                    </td>
                    <td>
                        <%#DataBinder.Eval(Container.DataItem, "CommendCount")%>
                    </td>
                    <td>
                        <asp:LinkButton ID="lnkbtnDel" CommandArgument='<%#DataBinder.Eval(Container.DataItem, "CommentID")%>'
                            CommandName="mydel" runat="server">删除</asp:LinkButton>
                        <asp:LinkButton ID="lnkbtnState" Visible="false" CommandArgument='<%#DataBinder.Eval(Container.DataItem, "CommentID")%>'
                            CommandName="mystate" runat="server">有用</asp:LinkButton>
                    </td>
                </tr>
            </ItemTemplate>
            <FooterTemplate>
                </table>
            </FooterTemplate>
        </asp:Repeater>
        <br />
        <table width="100%" border="0" cellpadding="0" cellspacing="0">
            <tr>
                <td align="Center">
                    <webdiyer:AspNetPager ID="AspNetPager1" runat="server" HorizontalAlign="Center" OnPageChanged="AspNetPager1_PageChanged"
                        ShowCustomInfoSection="Left" Width="100%" meta:resourceKey="AspNetPager1" Style="font-size: 14px"
                        InputBoxStyle="width:19px" CustomInfoHTML="当前页  <font color='red'><b>%CurrentPageIndex%</b></font> 总页数  %PageCount%  当前条数 %StartRecordIndex%-%EndRecordIndex%"
                        FirstPageText="首页" LastPageText="末页" NextPageText="下一页" PrevPageText="上一页">
                    </webdiyer:AspNetPager>
                </td>
            </tr>
        </table>
    </form>
</body>
</html>
